/*    */ package tools;
/*    */ 
/*    */ import com.fasterxml.jackson.annotation.JsonCreator;
/*    */ import com.fasterxml.jackson.annotation.JsonProperty;
/*    */ import java.io.Serializable;
/*    */ 
/*    */ public class Triple<E, F, G>
/*    */   implements Serializable
/*    */ {
/*    */   private static final long serialVersionUID = 9179541993413739999L;
/*    */   public E left;
/*    */   public F mid;
/*    */   public G right;
/*    */   
/*    */   @JsonCreator
/*    */   public Triple(@JsonProperty("left") E left, @JsonProperty("mid") F mid, @JsonProperty("right") G right) {
/* 17 */     this.left = left;
/* 18 */     this.mid = mid;
/* 19 */     this.right = right;
/*    */   }
/*    */   
/*    */   public E getLeft() {
/* 23 */     return this.left;
/*    */   }
/*    */   
/*    */   public F getMid() {
/* 27 */     return this.mid;
/*    */   }
/*    */   
/*    */   public G getRight() {
/* 31 */     return this.right;
/*    */   }
/*    */ 
/*    */   
/*    */   public String toString() {
/* 36 */     return this.left.toString() + ":" + this.mid.toString() + ":" + this.right.toString();
/*    */   }
/*    */ 
/*    */   
/*    */   public int hashCode() {
/* 41 */     int prime = 31;
/* 42 */     int result = 1;
/* 43 */     result = 31 * result + ((this.left == null) ? 0 : this.left.hashCode());
/* 44 */     result = 31 * result + ((this.mid == null) ? 0 : this.mid.hashCode());
/* 45 */     result = 31 * result + ((this.right == null) ? 0 : this.right.hashCode());
/* 46 */     return result;
/*    */   }
/*    */ 
/*    */   
/*    */   public boolean equals(Object obj) {
/* 51 */     if (this == obj) {
/* 52 */       return true;
/*    */     }
/* 54 */     if (obj == null) {
/* 55 */       return false;
/*    */     }
/* 57 */     if (getClass() != obj.getClass()) {
/* 58 */       return false;
/*    */     }
/* 60 */     Triple other = (Triple)obj;
/* 61 */     if (this.left == null) {
/* 62 */       if (other.left != null) {
/* 63 */         return false;
/*    */       }
/* 65 */     } else if (!this.left.equals(other.left)) {
/* 66 */       return false;
/*    */     } 
/* 68 */     if (this.mid == null) {
/* 69 */       if (other.mid != null) {
/* 70 */         return false;
/*    */       }
/* 72 */     } else if (!this.mid.equals(other.mid)) {
/* 73 */       return false;
/*    */     } 
/* 75 */     if (this.right == null) {
/* 76 */       if (other.right != null) {
/* 77 */         return false;
/*    */       }
/* 79 */     } else if (!this.right.equals(other.right)) {
/* 80 */       return false;
/*    */     } 
/* 82 */     return true;
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\tools\Triple.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */